<common-nav></common-nav>
<div class="paicha" ng-controller="paichaController" style="">
  <div class="paichaFenlei" style="display: flex; flex-direction: row">
      <span style="width: 50px; line-height:33px;margin-left: 10px;">周期 :</span>
    <div style="height: 30px;overflow: hidden;">
    <ul style="display: flex; flex-direction: row;overflow: scroll;height: 30px;">
        <li><input type="button" value="全部" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('all')"/></li>
        <li><input type="button" value="日" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('day')"/></li>
        <li><input type="button" value="班" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('class')"/></li>
        <li><input type="button" value="周" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('week')"/></li>
        <li><input type="button" value="月" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('month')"/></li>
        <li><input type="button" value="季" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('season')"/></li>
        <li><input type="button" value="年" style="margin-right: 5px;margin-top: 0 !important;" ng-click="change('year')"/></li>
    </ul>
    </div>
  </div>
    <div  ng-repeat="x in data" style="overflow: hidden">
  <a href="#!/renwuxiangqing" class="paichaLi" ng-click="sending(x)" style="z-index: 1">
    <div class="paichaLiGl">
      <div>项目 :<span ng-bind="x.itemId"></span></div>
      <div ng-if="x.state =='01'" style="text-align:right;color: red;margin-right: 10px;">待排查</div>
      <div ng-if="x.state =='02'" style="text-align:right;color: lightgreen;margin-right: 10px;">已排查</div>
    </div>
    <div class="paichaLiGl">
      <div>开始 :<span ng-bind="x.planDt"></span></div>
      <div>结束 :<span ng-bind="x.planEndDt"></span></div>
    </div>
    <div class="paichaLiGl">
      <div>周期 :<span ng-bind="x.frequency+'年'"></span></div>
      <div style="display: inline">存在隐患 :</div>

    </div>
  </a>
    <div ng-if="x.state=='01'" ng-click="panduan(x)" class="" style="width: 74px;height: 24px;overflow:hidden;display: inline;margin-left:50px;position: relative;top: -33px;left:59%; z-index: 2;float: left;"  >
        <div class="mui-switch mui-switch-blue mui-active"  ng-click="sendingData(x.trFlag);x.trFlag=0" ng-if="x.trFlag==1">
            <!--ng-controller="paichaBtnCtrl"-->
            <div class="mui-switch-handle"></div>
        </div>
        <div class="mui-switch mui-switch-blue" ng-click="sendingData(x.trFlag);x.trFlag=1" ng-if="x.trFlag==0" ng-model="btnD">
            <div class="mui-switch-handle"></div>
        </div>
    </div>
        <div class="fgx" style="height: 5px;"></div>
        <div ng-if="x.state=='02'" class="" style="width: 74px;height: 24px;overflow:hidden;display: inline;margin-left:50px;position: relative;top: -33px;left:59%; z-index: 2;float: left;"  >
            <div class="mui-switch mui-switch-blue mui-active"   ng-if="x.trFlag==1">
                <!--ng-controller="paichaBtnCtrl"-->
                <div class="mui-switch-handle"></div>
            </div>
            <div class="mui-switch mui-switch-blue" ng-if="x.trFlag==0" >
                <div class="mui-switch-handle"></div>
            </div>
        </div>
        <div class="fgx" style="height: 5px;"></div>
    </div>
    <div style="height: 50px;width: 100%; z-index: 0"></div>
<div ng-click="submitPc()" class="tijiao" style="z-index:888;color: #fff;line-height: 50px;font-size: 20px;height: 50px;width: 100%;background-color:#314261;text-align: center;position: fixed;bottom: 0;left: 0;">提交</div>
</div>